//
//  UIImage+Extension.m
//  壳牌喜力促销积分商城
//
//  Created by xrd on 15/3/19.
//  Copyright (c) 2015年 xrd. All rights reserved.
//

#import "UIImage+Extension.h"
#define iOS7 ([[UIDevice currentDevice].systemVersion doubleValue] >= 7.0)

@implementation UIImage (Extension)
+ (UIImage *)imageWithName:(NSString *)name
{
    UIImage *image = nil;
    if (iOS7) {
        NSString *newName = [name stringByAppendingString:@"_ios7"];
        image = [UIImage imageNamed: newName];
        
    }
    if (image == nil) {
        image = [UIImage imageNamed: name];
        
    }


    return image;
}




@end
